<%--
  Created by IntelliJ IDEA.
  User: haol
  Date: 2016/9/23
  Time: 21:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@ include file="/common/meta.jsp" %>
    <script type="text/javascript" src="${ctx}/js/gcu/owner/list.js"></script>
    <script type="text/javascript" src="${ctx}/js/gcu/owner/upload.js"></script>
</head>
<body class="body_owner_list">
<ul class="breadcrumb">
    <li class="icon"></li>
    <li>您所在的位置：</li>
    <li>系统设置</li>
    <li>管理员列表</li>
</ul>
<%@ include file="/common/top.jsp" %>
<div class="widget widget-table">
    <div class="widget-content" id="formDiv" style="width: 95%;margin: 0 auto">
        <form>
            <table class="table table-bordered">
                <tr>
                    <th>业主姓名</th>
                    <td class="pn-fcontent"><input type="text" name="ownerName" class="form-control"
                                                   style="width:200px"></td>
                    <th>性别</th>
                    <td class="pn-fcontent">
                        <select name="sex" class="form-control">
                            <option value="">全部</option>
                            <option value="1">男</option>
                            <option value="0">女</option>
                        </select>
                    </td>
                    <th>物业费</th>
                    <td class="pn-fcontent">
                        <select name="isMoney" class="form-control">
                            <option value="">全部</option>
                            <option value="1">已交</option>
                            <option value="0">未交</option>
                        </select>
                    </td>
                    <th>楼宇</th>
                    <td class="pn-fcontent">
                        <select name="buildName" class="form-control">
                            <option value="">全部</option>
                            <c:forEach var="builds" items="${build_list}">
                                <option value="${builds.buildName}">${builds.buildName}</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
            </table>
            <div class="widget-bottom">
                <button type="submit" class="btn btn-info pull-right" id="searchBtn">搜索</button>
                <button type="button" class="btn  btn-s-md pull-right" id="clearBtn">清空</button>
                <button type="button" class="btn  btn-s-md pull-right" id="addBtn">新增</button>
                <button type="button" class="btn btn-danger pull-right" id="uploadBtn">上传</button>
                <button type="button" class="btn btn-s-md pull-right" id="downloadBtn">下载</button>
                <button type="button" class="btn btn-danger pull-right" id="delBtn">删除</button>
            </div>
        </form>
    </div>
</div>
<div class="separator line"></div>
<div class="widget widget-table">
    <div class="widget-content widget-list">
        <form id="myForm">
            <table class="table table-striped table-bordered">
                <div class="panel-heading"><span class="badge">业主信息列表</span></div>
                <tr>
                    <th><input type="checkbox" id="checkbox4all" onclick="selectAll($(this));">全选</th>
                    <th>业主姓名</th>
                    <th>性别</th>
                    <th>电话</th>
                    <th>工作单位地址</th>
                    <th>家庭人数</th>
                    <th>所在楼宇</th>
                    <th>门号</th>
                    <th>物业费</th>
                    <th>操作</th>
                </tr>
                <c:if test="${empty ownerList}">
                    <tr class='text-danger'>
                        <td colspan='10' align='center'>无数据存在！</td>
                    </tr>
                </c:if>
                <c:forEach var="owners" items="${ownerList}" varStatus="status">
                    <tr>
                        <td><input type="checkbox" name="subBox" value="${owners.id}"/>${status.count}</td>
                        <td>${owners.ownerName}</td>
                        <td>
                            <c:if test="${owners.sex eq 1}">男</c:if>
                            <c:if test="${owners.sex eq 0}">女</c:if>
                        </td>
                        <td>${owners.phone}</td>
                        <td>${owners.unitAdd}</td>
                        <td>${owners.homeNum}</td>
                        <td>${owners.buildName}</td>
                        <td>${owners.roomNum}</td>
                        <td>
                            <c:if test="${owners.isMoney eq 1}">已交</c:if>
                            <c:if test="${owners.isMoney eq 0}">未交</c:if>
                        </td>
                        <td>
                            <a href="${ctx}/owner/edit/${owners.id}">
                                <span style="font-size: 5px" class="label label-primary">详情</span></a>
                            <a href="${ctx}/money/edit/${owners.id}">
                                <span style="font-size: 5px" class="label label-info">缴费</span></a>
                            <a href="${ctx}/owner/del/${owners.id}">
                                <span style="font-size: 5px" class="label label-danger">删除</span></a>
                            <a href="${ctx}/owner/freshen/${owners.id}">
                                <span style="font-size: 5px" class="label label-warning">刷新</span></a>
                        </td>
                    </tr>
                </c:forEach>
            </table>
            <div class="widget-bottom">
                <jsp:include page="/common/pager.jsp">
                    <jsp:param value="users" name="url"/>
                    <jsp:param value="${pagers.total}" name="items"/>
                </jsp:include>
            </div>
        </form>
        <div class="widget-bottom">
        </div>
    </div>

</div>
</div>
<script type="text/template" id="uploadTmp">
    <form method="post" enctype="multipart/form-data" id="uploadForm">
        <div class="form-group">
            <label>业主信息文件（xls格式）:</label>
            <input type="file" name="file" id="fileId"/>
        </div>
    </form>
</script>
</body>
</html>
<!-- 每行模版 -->